package com.common.exception;

import com.common.constant.Codes;

public class ParamsErrorException extends RuntimeException{
    private String msg;
    private int code;


    public ParamsErrorException() {
        this.code= Codes.PARAM_ERROR.getCode();
        this.msg = Codes.PARAM_ERROR.getMessage();
    }

    public ParamsErrorException(String msg) {
        this.code= Codes.PARAM_ERROR.getCode();
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }
}
